package com.guxingke.gblog.service;

import java.util.List;

import com.guxingke.gblog.dmo.Category;
import com.guxingke.gblog.dto.CategoryDto;

/**
 * 类别Service
 * 
 * @author guxingke
 * */
public interface CategoryService {
	// getCategories() category(name,count)
	public List<CategoryDto> getCategories();

	// updateCategory() category(name)
	public void updateCategory(Category category);

	// saveCategory() category(name)
	public void saveCategory(Category category);

	// deleteCategory( categoryId)
	public void deleteCategory(Integer id);

	public Category getCategory(int categoryId);

	public boolean exist(int categoryId);
}
